import 'package:flutter/foundation.dart';

class OperatorModel {
  final int Id;
  final String mobile;

  final String name;

  final String role_name;

  final String lat;

  final String lng;

  final String station_id;

  final String station_name;

  ///接口数据会返回0所以这里的字段 框架解析有时候是double 有时候是 int 所以直接用 dynamic来接收
  final dynamic distance;

  //是否选中
  bool isSelect = false;

  OperatorModel(
    this.Id,
    this.mobile,
    this.name,
    this.role_name,
    this.lat,
    this.lng,
    this.station_id,
    this.station_name,
    this.distance,
  );

  factory OperatorModel.fromJson(Map<dynamic, dynamic> json) => OperatorModel(
        json['Id'],
        json['mobile'],
        json['name'],
        json['role_name'],
        json['lat'],
        json['lng'],
        json['station_id'],
        json['station_name'],
        json['distance'],
      );
}
